﻿using Forum.Model.Entity;
using Forum.Model.Pager;
using Forum.Model.Response;

namespace Forum.Service.Interface
{
    public interface ICategoryService
    {
        List<CategoryNode>? GetNodes(string name, int parentId = 0);
        Category? GetById(int id);
        IPagedList<Category> GetPagedList(int page = 1, int pageSize = 10);
        List<Category> GetAll();
        List<object> GetWordCloud();
        bool SetVisibility(Category category, bool isVisible);
        bool Delete(int id);
        Category Insert(Category post);
        Category Update(Category post);
    }
}
